<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
    <div id="hello">
        {{ hello }}
    </div>
    <script src="../../static/js/jquery-3.5.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
    <script>
        // 管某一块的数据显示
        var MyVue1 = new Vue({
            // el而不是e1
            el: "#hello", // 将Vue实例绑定到id为hello的div上
            data: {
                hello: '你好世界' // 设置hello的初始值为'1'
            },
            created() {
                $.ajax({
                    headers:{
                        token:"hello"
                    },
                    url:"http://localhost:8080/find",
                    method:"get",
                    data:{
                        username:"biwei",
                        password:"200308027"
                    },
                    success:(e)=>{
                        console.log(e)
                    },
                    // fail:        请求失败
                })
            }
        });
    </script>
</body>
</html>
